package com.ktgj.flight.common.ruili.drdomain;

import com.google.common.base.Strings;

import java.util.Date;

/**
 * 查询任务记录
 */
public class Search_Task {
    public String OnlyCode;
    public int RequestType;
    public int TripType; //1:单程 2：往返

    public String OrgAirport;
    public String DstAirport;
    public String DepDate;
    public String RetDate;
    public long UseTime;
    public String RequestParam;
    public String CacheKey= String.format("{0}_{1}_{2}_{3}_{4}_{5}_{6}",
            this.RequestType,
            this.OrgAirport,
            this.DstAirport,
            this.DepDate.replaceAll("-",""),
            Strings.isNullOrEmpty(this.RetDate) ? "" : this.RetDate.replaceAll("-", ""),
            this.TripType,
            this.OnlyCode);
    public Date CreateTime;
}
